<!--
  @author yangjiangming
  @date 2018-12-10 20:40:28
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html th:replace="~{work/modify/common/layout :: layout('改状态', ~{::title}, ~{::content}, ~{::script})}">
<head>
    <title>工单管理-改状态</title>
</head>
<body>

<div th:fragment="content">
    <style>
        .layui-form-item .d-width-label{
            width: 45px;
        }
        .layui-form-item .d-width-input{
            width: 200px;
        }
    </style>
    <form action="/work/modify/save/status.action" class="layui-form">

        <input type="hidden" name="orderId" th:value="${orderId}"/>
        <input type="hidden" name="workId" th:value="${workId}"/>

        <div class="layui-form-item">
            <label class="layui-form-label d-width-label">现状态</label>
            <div class="layui-inline">
                <input type="text" class="layui-input d-width-input now-state" readonly th:value="${vo.statusName}">
            </div>
            <div th:if="${vo.showDiscountWarn}" class="layui-inline" style="color: #CF1900;">
                改至已确认状态，订单优惠将被清空，请重新给用户优惠
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label d-width-label">后状态</label>
            <div class="layui-inline d-width-input">
                <select class="status"  name="status" id="status">
                    <option th:each="item : ${vo.statusList}" th:value="${item.value}" th:text="${item.text}"></option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label d-width-label">缘由</label>
            <div class="layui-inline">
                <textarea name="operatorRemark" lay-verify="required"  placeholder="请输入缘由" class="layui-textarea" style="width: 800px"></textarea>
            </div>
        </div>
        <div class="layui-form-item" style="text-align: center;margin-top: 30px;">
            <div class="layui-inline">
                <button class="layui-btn layui-btn-normal" lay-submit="">保存</button>
                <!--<button class="layui-btn layui-btn-primary" type="reset">重置</button>-->
            </div>
        </div>
    </form>
</div>

<script th:inline="javascript">
    var layuiModel = {
        oms_work_modify_update_status : "work/modify/zmn.oms.work.modify.update_status"
    };
</script>
</body>
</html>